package tt.dz.entity.system;

import java.io.Serializable;
import java.util.Date;

import tt.dz.util.annotation.Ignore;
import tt.dz.util.annotation.PrimaryKey;
import tt.dz.util.annotation.Table;

/**
 * 操作员角色关联
 * <p>
 * 修改时间：2015年12月16日
 * <p>
 * 修改人：谢龙飞
 * <p>
 * 修改内容：添加注释，主键注解，实现序列化接口，实体类注释
 */
@Table(name = "oms_oper_role")
public class OmsOperRole implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/** 管理员ID */
	@PrimaryKey
	private String oper_id;
	/** 角色id */
	@PrimaryKey
	private String role_id;

	/** 记录时间 */
	private Date create_time;
	/** 创建人id */
	private String create_oper_id;
	/** 更新时间 */
	private Date update_time;
	private String update_oper_id;

	private Integer valid_flag;
	
	
	/**关联角色信息*/
	@Ignore
	private OmsRole role;

	public void setRole_id(String role_id) {
		this.role_id = role_id;
	}

	public String getRole_id() {
		return role_id;
	}

	public void setValid_flag(Integer valid_flag) {
		this.valid_flag = valid_flag;
	}

	public Integer getValid_flag() {
		return valid_flag;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_oper_id(String create_oper_id) {
		this.create_oper_id = create_oper_id;
	}

	public String getCreate_oper_id() {
		return create_oper_id;
	}

	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	public Date getUpdate_time() {
		return update_time;
	}

	public void setUpdate_oper_id(String update_oper_id) {
		this.update_oper_id = update_oper_id;
	}

	public String getUpdate_oper_id() {
		return update_oper_id;
	}


	public OmsRole getRole() {
		return role;
	}

	public void setRole(OmsRole role) {
		this.role = role;
	}

	public String getOper_id()
	{
		return oper_id;
	}

	public void setOper_id(String oper_id)
	{
		this.oper_id = oper_id;
	}
}
